package org.darkforest.common.services;

import org.darkforest.enums.SettingNameEnum;
import org.darkforest.model.Setting;
import org.darkforest.vo.SiteSettingInfo;

import java.util.List;

/**
 * Created by valentina on 15/4/24.
 */
public interface SettingService {

    /**
     * 保存
     * @param setting
     * @return
     */
    public Integer saveSetting(Setting setting);

    /**
     * 更新
     * @param setting
     */
    public Integer updateSetting(Setting setting);

    /**
     * 通过名字获取
     * @param name
     * @return
     */
    public String getSettingInfo(SettingNameEnum name);

    /**
     * 查找所以的设置
     * @return
     */
    List<Setting> findAllSetting();


    /**
     * 初始化系统参数配置
     * @param siteSettingInfo
     */
    public void initSiteSetting(SiteSettingInfo siteSettingInfo);

}
